xml.instruct! :xml, :version=>"1.0"
xml.rss(:version=>"2.0"){
  xml.channel{
    xml.title(h @issue.summary)
    xml.link(issue_url( @project.name, @issue.local_id ))
    xml.description("#{@project.name} ##{@issue.local_id}, " +
                    "submitted #{time_ago_in_words( @issue.created_at )} ago " +
                    "by #{@issue.submitter.display}"
                    )
    xml.language('en-us')
      xml.item do
        xml.title(h @issue.summary)
        xml.description(wiki @issue.details)
        xml.author(@issue.submitter.display)
        xml.pubDate(@issue.created_at.strftime("%a, %d %b %Y %H:%M:%S %z"))
        xml.link(issue_url( @project.name, @issue.local_id ))
      end
      @issue.comments.each do |comment|
        xml.item do
          xml.title(h comment.summary)
          xml.description(wiki comment.details)
          xml.author(comment.user.display)
          xml.pubDate(comment.created_at.strftime("%a, %d %b %Y %H:%M:%S %z"))
          xml.link(issue_url( @project.name, @issue.local_id ))
        end
      end
  }
}
